# -*- coding: utf-8 -*-
# @Time    : 2024/9/6 下午4:03
# @Author  : liujun
# @Email   : 2592730854@qq.com
# @File    : release_works_details_page.py
# @Software: PyCharm

from appium.webdriver.common.appiumby import AppiumBy as By

class ReleaseWorksDetailsPage:
    """上传作品详情页面"""


    #输入文本
    input_idea_txt_locator=(By.ID,"com.xiachufang:id/dish_desc")


    #发布按钮
    upload_btn_locator=(By.ID,"com.xiachufang:id/dish_update_image")


    def __init__(self, driver):
        self.driver = driver

    def input_txt(self,idea):  #输入想法
        self.driver.find_element(*self.input_idea_txt_locator).send_keys(idea)

    def click_upload_btn(self):  #点击发布按钮
        self.driver.find_element(*self.upload_btn_locator).click()